#pragma once

#include "Object.h"

class CPistol: public Object
{
public:
	int mi_direction;
	int mi_animationRate;
	int ix, iy;	//bullet position on the screen

	float fx, fy;	//bullet verlocity when moving

	DWORD lastTime;

public:
	CPistol(LPD3DXSPRITE, float);
	~CPistol();

	void setDirection (int idirection);

	virtual void Update(int deltaTime, int moveCame);
	virtual void Render();
	virtual void Next();
	void setRect(int moveCame);

	//get method
	//
	bool IsFinish();
	void release();
};
